package com.zhengb.algorithmdemo.basic.stack;

/**
 *
 * @author zhengbo
 * @date 2020/2/18
 */
public class LLNode<T> {

    private T data;

    private LLNode<T> nextNode;

    public LLNode(T data) {
        this.data = data;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }

    public LLNode<T> getNextNode() {
        return nextNode;
    }

    public void setNextNode(LLNode<T> nextNode) {
        this.nextNode = nextNode;
    }

    @Override
    public String toString() {
        return "LLNode{" +
                "data=" + data +
                ", nextNode=" + nextNode +
                '}';
    }
}
